/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.modulars.tenant.customerstatus.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.core.base.entity.BaseEntity;

/**
 * 租户客户状态配置 Entity
 *
 * @author guagua
 * @date 2025-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TenantCustomerStatus extends BaseEntity {

    /**
     * 状态编码（10, 11, 12等）
     */
    private String statusCode;

    /**
     * 状态名称
     */
    private String statusName;

    /**
     * 状态类型（CORE=核心状态, CUSTOM=自定义状态）
     */
    private String statusType;

    /**
     * 父级状态类型（NORMAL=正常, LOST=流失）
     */
    private String parentType;

    /**
     * 状态颜色
     */
    private String statusColor;

    /**
     * 排序号
     */
    private Integer sortOrder;

    /**
     * 是否系统内置
     */
    private Integer isSystem;

    /**
     * 是否启用
     */
    private Integer isActive;

    /**
     * 备注
     */
    private String remark;

    /**
     * 父级主键集合
     */
    private String orgIds;

    // ========================================

    /**
     * 多租户字段
     */
    private String tenantId;

    /**
     * 逻辑删除字段
     */
    @TableLogic
    private Integer deleted;
}